/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author HUY
 */
public class ConnectUnit {
    private SQLSEVERConnect conn;
    
    public ResultSet Select(String TableName) throws Exception {
        return this.conn.excuteQuery("SELECT * FROM "+TableName);
    }
    public void Close() throws SQLException{
    this.conn.Close();
}
    public ConnectUnit(){
        this.conn = new SQLSEVERConnect();
    }
}
